<template>
  <div class="container"
    v-loading="loading"
    element-loading-text="加载中"
    element-loading-spinner="el-icon-loading"
    element-loading-background="rgba(0, 0, 0, 0.7)"
  >
    <div class="contents">
      <div class="contetn_center">
        <CenterMap class="contetn_center_top" />
      </div>
      <div class="contetn_left">
        <ItemWrap class="contetn_left-top contetn_lr-item" title="设备总览">
          <LeftTop />
        </ItemWrap>
        <ItemWrap class="contetn_left-center contetn_lr-item" title="本月频发告警数量统计(前三)">
          <LeftCenter />
        </ItemWrap>
      </div>
    </div>
  </div>
</template>

<script>
import LeftTop from "./left-top.vue";
import LeftCenter from "./left-center.vue";
import CenterMap from "./center-map.vue";
import ItemWrap from "../components/item-wrap.vue";
export default {
  components: {
    LeftTop,
    LeftCenter,
    CenterMap,
    ItemWrap,
  },
  data() {
    return {
      code: "",
      radomCode: "",
      loading: false,
    };
  },

  created() {},
  
  mounted() {},
  methods: {
    getCode(val) {
      this.code = val;
      this.radomCode = this.code + new Date().getTime();
    },
    getLoading(val) {
      this.loading = val;
    },
  },
};
</script>
<style lang="scss" scoped>
@import "@/styles/common.scss";
.container{
  height: calc(100% - 82px);
}
.contents {
  width: 100%;
  height: 100%;
  @include flexLayout(center, space-around);
  .contetn_left {
    width: 540px;
    height: 868px;
    box-sizing: border-box;
    @include flexLayout(center, space-between);
    flex-direction: column;
    margin-top: 40px;
  }

  .contetn_center {
    width: 1320px;
    @include flexLayout(center, space-around);
    flex-direction: column;
  }

  //左右两侧
  .contetn_lr-item {
    height: 310px;
    height: 410px;
  }

  .contetn_center_top {
    width: 100%;
  }
}
</style>
